    /***
     * @description axios封装
     * @file api.ts
     * @author andy
     * @date 2024/3/22 16:40
     */
// file:api.s
// 1、导入axios以及拦截器
import service from './request'

// 分页获取抽奖记录
export const getJoinRecord = (data:any) => {
    return service({
        url: '/win/index/getJoinRecord',
        method: 'post',
        data
    })
};

// 用户积分抽奖接口
export const joinActiveByScore = (activeId:any) => {
    return service({
        url: '/win/index/joinActiveByScore/' + activeId,
        method: 'post',
    })
};


// 根据活动ID获取活动信息
export const getActiveById = (activeId:any) => {
    return service({
        url: '/win/index/getActiveById/' + activeId,
        method: 'post',
    })
};